Using spline trajectories
Spline trajectory is a polynomial path in 3D space formed by a set of points and control points. Use trajectories as paths along which Trajectory Layout 3D and Trajectory Layout 2D nodes arrange their child nodes, and along which Trajectory List Box 3D nodes move their items.
You can import and convert curves, including NURBS curves, to Kanzi splines from .fbx files. See Adjusting a spline created from a NURBS curve.
Creating a spline trajectory
To create a spline trajectory:
- Select > > and select the .fbx file containing the spline you want to use for a trajectory.
- In the Library press Alt and right-click Trajectories and select Spline Trajectory.
- In the Properties set the Spline property to the spline you imported.
- In the Project select the object using a trajectory and in the Properties set the Trajectories property to the spline trajectory you created. See Using the Trajectory List Box 3D node and Using the Trajectory Layout nodes.
Adjusting a spline created from a NURBS curve
When you use a NURBS curve for a spline trajectory you can adjust the number of subdivisions when importing the NURBS curve to Kanzi Studio. Kanzi uses the value you provide to tesselate the NURBS curve as a Kanzi spline. See Using the Trajectory List Box 3D node and Using the Trajectory Layout nodes.
To adjust a spline created from a NURBS curve:
- In the Library > Resource Files > 3D Assets select the .fbx file that contains the NURBS curve you are using for a spline trajectory.
- In the Properties set the Curve Tesselation Detail property to the number of subdivisions in the NURBS curve you want to use.
The default value is 16. Set the property to different values to find the result that suits you best.
- In the Library > Resource Files > 3D Assets right-click the .fbx file that contains the NURBS curve and select Clean Import 3D Asset File.
- In the Library > Trajectories select the spline trajectory that uses the NURBS curve you imported and in the Properties set the Spline property to the spline you imported.
See also
Using the Trajectory List Box 3D node
Using the Trajectory Layout nodes
Using circle trajectories
Trajectories
3D content
Open topic with navigation